package top.iflyoung.cim.biz.service;

import com.baomidou.mybatisplus.extension.service.IService;
import top.iflyoung.cim.biz.entity.ChatGroupMember;
import top.iflyoung.cim.biz.entity.User;

import java.util.List;

/**
 * @author liguiyang
 * @description
 * @sine 1.8
 * @date 2021/9/222:45
 **/
public interface ChatGroupMemberService extends IService<ChatGroupMember> {
    /**
     * 添加成员
     * @param memberList
     * @return
     */
    boolean addMembers(User creator, List<User> memberList);

    /**
     * 通过分组ID查询出组员
     * @param groupId
     * @return
     */
    List<ChatGroupMember> findMembers(Long groupId);
}
